
package com.campus.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("课程学习单元创建")
public class TCourseLearnUnitCreateDto {

  @ApiModelProperty("学习单元名称")
  @NotBlank(message = "学习单元名称不能为空")
  private String unitTitle;

  @ApiModelProperty("学习单元文档路径")
  @NotBlank(message = "文档路径不能为空")
  private String docPath;

  @ApiModelProperty("学习单元视频路径")
  @NotBlank(message = "视频路径不能为空")
  private String videoPath;

  @ApiModelProperty("学习单元介绍")
  @NotBlank(message = "单元介绍不能为空")
  private String unitIntroduce;

  @ApiModelProperty("学习单元父id")
  private Long fatherId;

  @ApiModelProperty("是否为章节")
  @NotBlank(message = "是否为章节不能为空")
  private String isChpt;

  @ApiModelProperty("课程id")
  @NotNull(message = "课程id不能为空")
  private Long courseId;

  @ApiModelProperty("学习本单元所得积分")
  @NotNull(message = "学习本单元所得积分不能为空")
  private Long learningScore;
}
